from django.urls import path
from mgr import sign
from mgr import views
from django.views.decorators.csrf import csrf_exempt  # 解决跨域

urlpatterns = [

    #shp 2025_2_7 新增登录view
    path('view/signin', csrf_exempt(views.signinview),  name='signin'),
    path('view/signup', csrf_exempt(views.signupview)),
    path('view/frame', csrf_exempt(views.frameview)),
    path('view/profile', csrf_exempt(views.profileview)),
    #shp 2025_2_7 新增登录api
    path('api/signin', csrf_exempt(sign.signin)),
    path('api/signout', csrf_exempt(sign.signout)),
    path('api/signup', csrf_exempt(sign.signup)),
    path('api/get_csrf',csrf_exempt(sign.get_csrf)),
    path('api/getrmbuserone',csrf_exempt(sign.getrmbuserone)),
    path('api/get_menu',csrf_exempt(sign.get_menu)),
]